package com.ssm.service.impl;

import com.ssm.dao.ManagerDao;
import com.ssm.pojo.Manager;
import com.ssm.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManagerServiceImpl implements ManagerService {

    @Autowired
    ManagerDao managerDao;

    public Manager query(String amount) {

        return managerDao.query(amount);
    }

    public List<Manager> list() {
        return managerDao.list();
    }

    public int addManager(Manager manager) {
        return managerDao.addManager(manager);
    }

    public List<Manager> find_name(String name) {
        return managerDao.find_name(name);
    }

    public List<Manager> find_cdorm(String cdorm) {
        return managerDao.find_cdorm(cdorm);
    }

    public int addManagerList(List<Manager> list) {
        return managerDao.addManagerList(list);
    }

    public int deleteManager(String amount) {
        return managerDao.deleteManager(amount);
    }

    public void deleteManagerList(List<String> list) {
        managerDao.deleteManagerList(list);
    }

    public int updateManager(Manager manager) {
        return managerDao.updateManager(manager);
    }

    public int update_pw(String amount, String password) {
        return managerDao.update_pw(amount,password);
    }
}
